//
//  ViewController.h
//  MapList
//
//  Created by Wu Chenhao on 6/2/12.
//  Copyright (c) 2012 MicroStrategy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ActivityViewController.h"
#import "StaticInfo.h"
#import "RequestUtil.h"

@interface HomeViewController : UIViewController {
    UIView *infoView;
    UIImageView *avatarView;
    UIImageView *avatar;
    UIButton *shareButton;
    UIButton *helpButton;
    UIButton *exitButton;
    UILabel *mileStone;
    UILabel *userName;
    
    UIImageView *divLine;
    
    UIView *contentView;
    
    //加载数据用到的对象
    StaticInfo *staticInfo;
    RequestUtil *requestUtil;
    NSMutableArray *actList;
    ActivityViewController* activityViewController;
}

@property (nonatomic, retain) UIView *infoView;
@property (nonatomic, retain) UIImageView *avatarView;
@property (nonatomic, retain) UIImageView *avatar;
@property (nonatomic, retain) UIButton *shareButton;
@property (nonatomic, retain) UIButton *helpButton;
@property (nonatomic, retain) UIButton *exitButton;
@property (nonatomic, retain) UILabel *mileStone;
@property (nonatomic, retain) UILabel *userName;
@property (nonatomic, retain) UIView *contentView;
@property (nonatomic, retain) UIImageView *divLine;
@property (nonatomic, retain) ActivityViewController* activityViewController;

//加载数据用到的对象
@property (nonatomic, retain) StaticInfo *staticInfo;
@property (nonatomic, retain) RequestUtil *requestUtil;
@property (nonatomic, retain) NSMutableArray *actList;


- (void) shareButtonClicked;
- (void) helpButtonClicked;
- (void) exitButtonClicked;

- (void)initInfoView;
- (void)addDivLine;

-(void)initActList:(NSString*)limit createTime:(NSString*)createTime;

@end
